package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Shoppingcart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingcartMapper extends BaseMapper<Shoppingcart> {
    Object selectById(Integer flowerId, Integer userId);

    void updateNum(Integer flowerId, Integer userId, int quantity);

    List<Shoppingcart> selectByUserId(String userId);

    void updateQuantity(String userId, String flowerId, Integer quantity);


    List<Shoppingcart> selectChecked(String userId);

    void deleteByUserId(String userId);
}
